package Exercises;

import java.util.Scanner;

public class Task3 {

	public static void main(String[] args) {
		Scanner sc = new Scanner (System.in);

	while(true)
	{
	int sum = 0;
	
	while(true)		
		{
		System.out.println("Please add a number: ");
		int s = sc.nextInt();
		
		sum +=s;
		if(s == 1)
			{
			break;
			}
		}
		sum = sum-1;
		System.out.println("The sum of your numbers is: " +sum);
		
		
	}
	}

}
